/*
 * =====================================================================================
 *
 *       Filename:  mainc.c
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  11/05/2012 03:47:07 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Kjeldahl (), 
 *   Organization:  
 *
 * =====================================================================================
 */
#include "LinearList.h"
void main(){
	int size=10;
	int a[10]={[1]=111,[2]=12,[3]=33,[4]=3,[8]=12};

	elmType *p=a;
	LinearList *L;
	L=initLinearList(p,size);
	listAll(L);
	elmType temp=delelement(L,4);
	listAll(L);
	printf("%d\n",temp);
	printf("search:%d\n",searchList(L,33));
	insertLinearList(L,3,1111);
	listAll(L);
	incrementList(L,12);
	insertLinearList(L,3,1111);
	printf("lll:%d\n",L->data[20]);
	listAll(L);
	delelement(L,4);

	insertLinearList(L,3,1111);
	insertLinearList(L,3,1111);
	insertLinearList(L,13,1111);
	L->data[14]=123;
	listAll(L);
	decrementList(L,20);
	listAll(L);
	//destroyLinearList(L);
}
